﻿using UnityEngine;
using UnityEngine.UI;


/// <summary>
/// 
/// </summary>
public class AppEntry: MonoBehaviour
{
    public RInputManager rIManager;
    public RInputModuleItem rIItem;


    public Button btn_Load;
    public Button btn_Save;
    public Button btn_SaveAs;



    public void Start()
    { 
        rIManager = new RInputManager(rIItem);


        btn_Load.onClick.AddListener(OnClickLoad);
        btn_Save.onClick.AddListener(OnClickSave);
        btn_SaveAs.onClick.AddListener(OnClickSaveAs);
    }


    private void OnClickSaveAs()
    {
        RInputManager.Instance.rIStorage.SaveAs();
    }
    private void OnClickSave()
    {
        RInputManager.Instance.rIStorage.Save();
    }
    private void OnClickLoad()
    {
        RInputManager.Instance.rIStorage.Load();
    }
}